TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::colortype::operator unsigned short() const from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::colortype::operator unsigned short() const

touchgfx::colortype::operator unsigned short() const

@fn operator uint16_t() const Cast that converts the given colortype to an uint16_t. Cast that converts the given colortype to an uint16_t. Provided only for backward compatibility. Not recommended to use.

Syntax

operator uint16_t() const;

Examples

touchgfx::colortype::operator unsigned short() const is referenced by 4 libraries and example projects.

References

LocationReferrerScopeText
Types.hpp:132
operator uint16_t() const
Color.hpp:70touchgfx::Color::getRedColor()touchgfx::Color
return bitDepth == 16 ? ((color & 0xF800) >> 8) : bitDepth == 24 ? ((color.getColor32() >> 16) & 0xFF) : bitDepth == 4 ? ((color & 0xF) * 0x11) : bitDepth == 2 ? ((color & 0x3) * 0x55) : 0;
Color.hpp:87touchgfx::Color::getGreenColor()touchgfx::Color
return bitDepth == 16 ? ((color & 0x07E0) >> 3) : bitDepth == 24 ? ((color.getColor32() >> 8) & 0xFF) : bitDepth == 4 ? ((color & 0xF) * 0x11) : bitDepth == 2 ? ((color & 0x3) * 0x55) : 0;
Color.hpp:104touchgfx::Color::getBlueColor()touchgfx::Color
return bitDepth == 16 ? ((color & 0x001F) << 3) : bitDepth == 24 ? (color.getColor32() & 0xFF) : bitDepth == 4 ? ((color & 0xF) * 0x11) : bitDepth == 2 ? ((color & 0x3) * 0x55) : 0;

Call Tree

Functions calling touchgfx::colortype::operator unsigned short() const
touchgfx::colortype::operator unsigned short() const
Functions writing touchgfx::colortype::operator unsigned short() const
all items filtered out
touchgfx::colortype::operator unsigned short() const
Type of touchgfx::colortype::operator unsigned short() const
touchgfx::colortype::operator unsigned short() const
uint16_t
all items filtered out